package com.ktjy.actual.service.Impl;

import com.ktjy.actual.entity.Paper;
import com.ktjy.actual.service.PrintService;
import com.ktjy.actual.mapper.PrintMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("printService")
public class PrintServiceImpl implements PrintService {

    @Autowired
    @Qualifier("PrintGrayMapper")
    private PrintMapper printMapper;

    @Override
    public boolean print(Paper paper) {
        return printMapper.print(paper)>0;
    }
}
